package com.cash.loan.modular.cash.dao;

import com.cash.loan.modular.cash.model.LoanRecommend;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品推荐表 Mapper 接口
 * </p>
 *
 * @author yangbo123
 * @since 2018-09-29
 */
public interface LoanRecommendMapper extends BaseMapper<LoanRecommend> {

    /**
     * 推荐位展示
     * @param field
     * @return
     */
    Map<String,Object> getFieldLimitByFieldId(@Param("field") Integer field);

    /**
     * 查找其它推荐的id
     * @param id
     * @return
     */
    List<Integer> getRecommendIdList(@Param("id") Integer id);

    /**
     * 查找其他的
     * @param id
     * @return
     */
    Map<String,Object> selectRecommendById(@Param("id") Integer id);
}
